package com.ls;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@SpringBootApplication
@ServletComponentScan
@EnableTransactionManagement
public class Application {

	public static void main(String[] args) {
		List<String> argList;
		if(null == args){
			argList = new ArrayList<>();
		}else{
			List<String> list = Arrays.asList(args);
			argList = new ArrayList(list);
		}
		argList.add("--spring.config.name=application,param");
		SpringApplication.run(Application.class, argList.toArray(new String[]{}));
	}
}
